import Vue from "vue";
import Vuex from "vuex"
import moduleCart from "./cart.js"
import moduleUser from './user.js'

Vue.use(Vuex);

const store = new Vuex.Store({
	// TODO: 挂载 modules 模块
	modules: {
		// 挂载购物车的vuex模块，模块成员内的访问路径被调整为 m_cart
		m_cart: moduleCart,
		m_user: moduleUser
	},
	
});

export default store;
